<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<title>设备能源管理系统(EMS)</title>
<meta charset="UTF-8" />
	<jsp:include page="../common/header.jsp"/>
	<script type="text/javascript" src="${basePath}/resources/js/moment.js"></script>
	<script type="text/javascript" src="${basePath}/resources/js/config/chargeConfig.js"></script>
</head>
<body class="easyui-layout">
<jsp:include page="../common/top.jsp"/>
<div class="layout-content" data-options="region:'center',border:false">
	<div class="easyui-layout togray mt15 layout-content4">
	    <div data-options="region:'center',title:'电费模式配置',split:true,collapsible:true,iconCls:'icon-p1'" >
	    	<div id="tb" style="margin:10px 0 0;">
				<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="obj.add();">添加模式</a>
				<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="obj.addSon();">添加标准</a>
				<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="obj.edit();">修改</a>
				<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="obj.deletes();">删除</a>
				<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="obj.effective();">设置有效</a>
				<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="obj.noEffective();">设置无效</a>
			</div>
			<table id="chargeConfig_data"></table>
	    </div>   
    </div>
</div>

<div id="addSonWin">
	<form id="addSonform" method="post" >
		<input type="hidden" name="fatherId" id="fatherId"/>
<!-- 		<input type="hidden" name="startTime" id='startTime'/> -->
<!-- 		<input type="hidden" name="endTime" id='endTime'/> -->
	 	<div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">电费名称：</label> 
	        <div class="col-pd-8"><input name="chargeName" class="textbox easyui-validatebox" style="width:200px;" data-options="required:'true'" /></div>
	    </div>
	    <div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">单位电费：</label> 
	        <div class="col-pd-8"><input name="unitValue" class="easyui-numberbox easyui-validatebox" style="width:200px;" data-options="required:'true',precision:2" /></div>
	    </div>
	    <div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">开始时间：</label> 
	        <div class="col-pd-8"><input id="dts" type="text" name="start"></input></div> 
	    </div>
	    <div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">结束时间：</label> 
	        <div class="col-pd-8"><input id="dte" type="text" name="end"></input></div> 
	    </div>
	</form>
</div>

<div id="editSonWin">
	<form id="editSonform" method="post" >
		<input type="hidden" name="id" id="id"/>
		<input type="hidden" name="fatherId" id="fatherId"/>
		<input type="hidden" name="sequence" id='sequence'/>
<!-- 		<input type="hidden" name="endTime" id='endTime_e'/> -->
	 	<div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">电费名称：</label> 
	        <div class="col-pd-8"><input name="chargeName" class="textbox easyui-validatebox" style="width:200px;" data-options="required:'true'" /></div>
	    </div>
	    <div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">单位电费：</label> 
	        <div class="col-pd-8"><input name="unitValue" class="easyui-numberbox easyui-validatebox" style="width:200px;" data-options="required:'true',precision:2" /></div>
	    </div>
	    <div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">开始时间：</label> 
	        <div class="col-pd-8"><input id="dts_e" type="text" name="start"></input></div> 
	    </div>
	    <div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">结束时间：</label> 
	        <div class="col-pd-8"><input id="dte_e" type="text" name="end"></input></div> 
	    </div>
	</form>
</div>


<div id="addWin">
	<form id="addform" method="post" >
	 	<div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">电费模式：</label> 
	        <div class="col-pd-8"><input name="chargeType" class="textbox easyui-validatebox" style="width:200px;" data-options="required:'true'" /></div>
	    </div>
	    <div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">地区：</label> 
	        <div class="col-pd-8"><input name="region" class="textbox easyui-validatebox" style="width:200px;" data-options="required:'true'" /></div>
	    </div>
	</form>
</div>

<div id="editWin">
	<form id="editform" method="post" >
		<input type="hidden" name="id" id="id"/>
		<input type="hidden" name="sequence" id='sequence'/>
	 	<div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">电费模式：</label> 
	        <div class="col-pd-8"><input name="chargeType" class="textbox easyui-validatebox" style="width:200px;" data-options="required:'true'" /></div>
	    </div>
	    <div class="col-pd-12 form-item"> 
	        <label class="col-pd-3">地区：</label> 
	        <div class="col-pd-8"><input name="region" class="textbox easyui-validatebox" style="width:200px;" data-options="required:'true'" /></div>
	    </div>
	</form>
</div>
</body>
</html>